<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <style>
        .flex{display: -webkit-box; display: -webkit-flex; display: flex;}
        html,body{
            background-color: transparent;
        }
    </style>
</head>
<body>
<div class="flex" style="width: 100%; height: 0.50rem; justify-content: center; align-items: center; background-color: #FFFFFF">
    <input id="name" style="width: 3.35rem;" placeholder="请输入名字">
</div>
</body>
</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common/common.js"></script>
<script type="text/javascript">
    var nameEl;
    var name;
    apiready = function () {
        nameEl = $api.byId('name');
        $api.val(nameEl, api.pageParam.given_name);
        nameEl.focus();
    }
    function changeValue() {
        var jsfun = 'updateUserInfo("given_name", "' + $api.val(nameEl) + '");';
        api.execScript({
            name: 'userInfoWin',
            frameName: 'userInfoFrame',
            script: jsfun
        });
        api.closeWin();
    }
</script>